package com.chenyue.cm.common.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 轮播图
 *
 * </p>
 *
 * @author ljy
 * @since 2021-08-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "JdBanner对象", description = "轮播图")
public class JdBanner extends Model<JdBanner> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "类型1引导页2启动页3banner")
    private Integer type;

    @ApiModelProperty(value = "跳转类型  默认是无  然后1h5 2直播间 3报名 4新闻 5球馆")
    private Integer transType;

    @ApiModelProperty(value = "跳转参数json")
    private String transParam;

    @ApiModelProperty(value = "展示位置")
    private Integer location;

    @ApiModelProperty(value = "是否展示0隐藏1展示")
    private Integer isShow;

    @ApiModelProperty(value = "展示地域-城市")
    private String city;

    @ApiModelProperty(value = "banner图片")
    private String image;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
